package com.mj.bean;

import java.io.Serializable;

import android.text.TextUtils;

public class UserInfo implements Serializable {
	private static final long serialVersionUID = 1910155204472289533L;
	private String id;
	private String userkey;
	private String token;
	private String nickname;
	private String avatar;
	private int sex;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserkey() {
		if (TextUtils.isEmpty(userkey)) {
			return "";
		}
		return userkey;
	}

	public void setUserkey(String userkey) {
		this.userkey = userkey;
	}

	public String getToken() {
		if (TextUtils.isEmpty(token)) {
			return "";
		}
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

}
